//
//  TeaDetailCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2018/3/19.
//  Copyright © 2018年 kamangkeji. All rights reserved.
//

#import "TeaDetailCell.h"

@interface TeaDetailCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *addressLab;


@end

@implementation TeaDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(ActivityDetailModel *)model
{
    _model = model;
    self.nameLab.text = model.title;
    self.timeLab.text = model.holdDate;
    self.addressLab.text = model.address;
}
+ (CGFloat)calculateDetailHeight:(ActivityDetailModel *)model
{
    return 84+[model.address boundingRectWithSize:CGSizeMake(ScreenW-30-49, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:Font(12)} context:nil].size.height;
}

@end
